package com.wechat.back.pojo.pic;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.groups.Default;
import lombok.Data;
import org.hibernate.validator.constraints.URL;

import java.time.LocalDateTime;

@Data
public class Icons {
    private Integer iconId; //图标id
    @NotEmpty
    @Pattern(regexp = "^\\S{1,10}$")
    private String iconName; //图标名称

    @NotEmpty
    @URL
    private String iconUrl; //图标地址

    @NotEmpty
    private String iconType; //图标类型

    private String iconDesc; //图标描述

    @NotEmpty
    @URL
    private String addressUrl; //菜单携带地址

    private LocalDateTime createTime;//创建时间

    private LocalDateTime updateTime;//更新时间

    public interface Add extends Default {

    }
    public interface Update extends Default{

    }


}
